package com.chen.pspms.entity;

public class GoveMajorStatistics {
    private String city;
    private Integer inspectionNum;//巡检的数量
    private Integer majorhazardNum;//危险源的数量
    private Integer warningNum;
    private Integer level1Num;
    private Integer level2Num;
    private Integer level3Num;

    public GoveMajorStatistics(String city,Integer inspectionNum,Integer majorhazardNum){
        this.city=city;
        this.inspectionNum=inspectionNum;
        this.majorhazardNum=majorhazardNum;
    }

    public GoveMajorStatistics(String city,Integer inspectionNum, Integer warningNum,
                               Integer level1Num,Integer level2Num,Integer level3Num){
        this.city=city;
        this.inspectionNum=inspectionNum;
        this.warningNum=warningNum;
        this.level1Num=level1Num;
        this.level2Num=level2Num;
        this.level3Num=level3Num;
        this.majorhazardNum=level1Num+level2Num+level3Num+warningNum;
    }

    public String getCity() {
        return city;
    }

    public Integer getInspectionNum() {
        return inspectionNum;
    }

    public void setInspectionNum(Integer inspectionNum) {
        this.inspectionNum = inspectionNum;
    }

    public Integer getMajorhazardNum() {
        return majorhazardNum;
    }

    public void setMajorhazardNum(Integer majorhazardNum) {
        this.majorhazardNum = majorhazardNum;
    }

    public void setMajorhazardNumByDangerous() {
        this.majorhazardNum=level1Num+level2Num+level3Num+warningNum;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getWarningNum() {
        return warningNum;
    }

    public void setWarningNum(Integer warningNum) {
        this.warningNum = warningNum;
    }

    public Integer getLevel1Num() {
        return level1Num;
    }

    public void setLevel1Num(Integer level1Num) {
        this.level1Num = level1Num;
    }

    public Integer getLevel2Num() {
        return level2Num;
    }

    public void setLevel2Num(Integer level2Num) {
        this.level2Num = level2Num;
    }

    public Integer getLevel3Num() {
        return level3Num;
    }

    public void setLevel3Num(Integer level3Num) {
        this.level3Num = level3Num;
    }

    @Override
    public String toString() {
        return "GoveMajorStatistics{" +
                "city='" + city + '\'' +
                ", inspectionNum=" + inspectionNum +
                ", majorhazardNum=" + majorhazardNum +
                ", warningNum=" + warningNum +
                ", level1Num=" + level1Num +
                ", level2Num=" + level2Num +
                ", level3Num=" + level3Num +
                '}';
    }
}
